package deng.ejb3.examples.webclient;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import deng.ejb3.examples.simplecase.Constants;
import deng.ejb3.examples.simplecase.EmployeeDalLocal;

@Stateless
public class EmployeeDalAccessBean implements EmployeeDalAccessLocal {
	
	private static Logger logger = LoggerFactory.getLogger(EmployeeDalAccessBean.class);
	
//	@EJB
//	private EmployeeDalLocal employeeDal;


	@PersistenceContext(unitName = Constants.EMPLOYEE_PERSISTENCE_UNIT)
	private EntityManager employeeEm;
	
	@Override
	public void testDal() {
		logger.info("employeeDal: " + employeeEm);		
	}

}
